/*
 * @Author: wenqingwu 18417432@qq.com
 * @Date: 2023-07-11 09:06:28
 * @LastEditors: wenqingwu 18417432@qq.com
 * @LastEditTime: 2023-07-11 14:52:31
 * @FilePath: \w325coding-react\day104\router-v5\src\App.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React from 'react'
import { renderRoutes } from 'react-router-config';
import routes from "./router/rednerRoutes"
function App() {

  return (
    <div className="App">
      {/* 路由的静态渲染 */}
      {/* 使用renderRoutes，把Routes提供的JSON 数据，渲染为路由规则对应的 <Switec>,<Route>组件和配置 */}
      {
        renderRoutes(routes)
      }
    </div >
  );
}

export default App;
